package com.gsafety.libraryktx.bean

import com.chad.library.adapter.base.entity.MultiItemEntity
import java.io.Serializable

data class AttachBean(
        var id: String,//path
        var name: String,//name
        var type: String//type
) : MultiItemEntity, Serializable {
    var _id: Long = 0
    var isDel = false
    override fun equals(other: Any?): Boolean {
        return when (other) {
            !is AttachBean -> false
            else -> this === other ||
                    !this.id.isNullOrEmpty() && !other.id.isNullOrEmpty() && this.id == other.id
        }
    }

    override fun getItemType(): Int {
        return 1
    }
}
